/**
 * JAMS - Job Apply Manage System
 */
package webApp;



import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import localApp.CompanyManage;

import dataObj.Company;


public class JAMS extends HttpServlet{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3432428931874379932L;

	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		this.doPost(request, response);
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// System Information Manage Class
		String comName=request.getParameter("comName");
		String comAdr=request.getParameter("comAdr");
		String comEmail=request.getParameter("comEmail");
		Company company=new Company(comName,comAdr,comEmail);
		CompanyManage.insertCompany(company);

	}

}
